<?php
#新手任务检查
ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';
ini_set('memory_limit', '1024M');

$brandId = $argv[1] ?? 0;

if (empty($brandId)) {
    echo "brand_id required" . PHP_EOL;
    exit;
}

$brandInfo = \Biz\model\brand\Brand::getBrandInfoById($brandId);

if (empty($brandInfo)) {
    echo "brand not found" . PHP_EOL;
    exit;
}

\Biz\service\brand\BrandGrowth::primaryTaskDone($brandInfo['uid'], $brandId);
